// vitest.config.js
import { fileURLToPath as fileURLToPath2 } from "node:url";
import { mergeConfig, defineConfig as defineConfig2, configDefaults } from "file:///E:/dsw/dev/sf-db-system-web/node_modules/vitest/dist/config.js";

// vite.config.js
import { fileURLToPath, URL as URL2 } from "node:url";
import { defineConfig } from "file:///E:/dsw/dev/sf-db-system-web/node_modules/vite/dist/node/index.js";
import vue from "file:///E:/dsw/dev/sf-db-system-web/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import vueJsx from "file:///E:/dsw/dev/sf-db-system-web/node_modules/@vitejs/plugin-vue-jsx/dist/index.mjs";
import legacy from "file:///E:/dsw/dev/sf-db-system-web/node_modules/@vitejs/plugin-legacy/dist/index.mjs";
import Components from "file:///E:/dsw/dev/sf-db-system-web/node_modules/unplugin-vue-components/dist/vite.js";
import { AntDesignVueResolver } from "file:///E:/dsw/dev/sf-db-system-web/node_modules/unplugin-vue-components/dist/resolvers.js";
var __vite_injected_original_import_meta_url = "file:///E:/dsw/dev/sf-db-system-web/vite.config.js";
var vite_config_default = defineConfig(() => {
  return {
    base: "./",
    define: {
      APP_MOCK_ENABLE: JSON.stringify(process.argv.includes("--mock"))
    },
    plugins: [
      vue(),
      vueJsx(),
      legacy(),
      Components({
        resolvers: [
          AntDesignVueResolver({
            importStyle: false
            // css in js
          })
        ]
      })
    ],
    resolve: {
      alias: {
        "@": fileURLToPath(new URL2("./src", __vite_injected_original_import_meta_url))
      }
    },
    server: {
      proxy: {
        "/api-at": {
          target: "http://127.0.0.1:8000",
          changeOrigin: true,
          rewrite: (path) => {
            return path.replace(/^\/api\-at/, "");
          }
        },
        "/api": {
          // target: 'http://192.168.1.222:8888',
          // target: 'http://139.224.43.89:8888',
          // target: 'http://127.0.0.1:8000',
          // target: 'http://139.196.179.195:12395',
          // target: 'http://139.196.179.195:81',
          target: "http://139.196.179.195",
          // target: 'http://192.168.1.103:12396',
          changeOrigin: true
          // rewrite: path => {
          //   return path.replace(/^\/api/, '')
          // },
        }
      }
    }
  };
});

// vitest.config.js
var __vite_injected_original_import_meta_url2 = "file:///E:/dsw/dev/sf-db-system-web/vitest.config.js";
var vitest_config_default = mergeConfig(
  vite_config_default,
  defineConfig2({
    test: {
      environment: "jsdom",
      exclude: [...configDefaults.exclude, "e2e/**"],
      root: fileURLToPath2(new URL("./", __vite_injected_original_import_meta_url2))
    }
  })
);
export {
  vitest_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZXN0LmNvbmZpZy5qcyIsICJ2aXRlLmNvbmZpZy5qcyJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiY29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2Rpcm5hbWUgPSBcIkU6XFxcXGRzd1xcXFxkZXZcXFxcc2YtZGItc3lzdGVtLXdlYlwiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiRTpcXFxcZHN3XFxcXGRldlxcXFxzZi1kYi1zeXN0ZW0td2ViXFxcXHZpdGVzdC5jb25maWcuanNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfaW1wb3J0X21ldGFfdXJsID0gXCJmaWxlOi8vL0U6L2Rzdy9kZXYvc2YtZGItc3lzdGVtLXdlYi92aXRlc3QuY29uZmlnLmpzXCI7aW1wb3J0IHsgZmlsZVVSTFRvUGF0aCB9IGZyb20gJ25vZGU6dXJsJ1xuaW1wb3J0IHsgbWVyZ2VDb25maWcsIGRlZmluZUNvbmZpZywgY29uZmlnRGVmYXVsdHMgfSBmcm9tICd2aXRlc3QvY29uZmlnJ1xuaW1wb3J0IHZpdGVDb25maWcgZnJvbSAnLi92aXRlLmNvbmZpZydcblxuZXhwb3J0IGRlZmF1bHQgbWVyZ2VDb25maWcoXG4gIHZpdGVDb25maWcsXG4gIGRlZmluZUNvbmZpZyh7XG4gICAgdGVzdDoge1xuICAgICAgZW52aXJvbm1lbnQ6ICd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1xyXG5cclxuLy8gaHR0cHM6Ly92aXRlLmRldi9jb25maWcvXHJcbmV4cG9ydCBkZWZhdWx0IGRlZmluZUNvbmZpZygoKSA9PiB7XHJcbiAgcmV0dXJuIHtcclxuICAgIGJhc2U6ICcuLycsXHJcbiAgICBkZWZpbmU6IHtcclxuICAgICAgQVBQX01PQ0tfRU5BQkxFOiBKU09OLnN0cmluZ2lmeShwcm9jZXNzLmFyZ3YuaW5jbHVkZXMoJy0tbW9jaycpKSxcclxuICAgIH0sXHJcbiAgICBwbHVnaW5zOiBbXHJcbiAgICAgIHZ1ZSgpLFxyXG4gICAgICB2dWVKc3goKSxcclxuICAgICAgbGVnYWN5KCksXHJcbiAgICAgIENvbXBvbmVudHMoe1xyXG4gICAgICAgIHJlc29sdmVyczogW1xyXG4gICAgICAgICAgQW50RGVzaWduVnVlUmVzb2x2ZXIoe1xyXG4gICAgICAgICAgICBpbXBvcnRTdHlsZTogZmFsc2UsIC8vIGNzcyBpbiBqc1xyXG4gICAgICAgICAgfSksXHJcbiAgICAgICAgXSxcclxuICAgICAgfSksXHJcbiAgICBdLFxyXG4gICAgcmVzb2x2ZToge1xyXG4gICAgICBhbGlhczoge1xyXG4gICAgICAgICdAJzogZmlsZVVSTFRvUGF0aChuZXcgVVJMKCcuL3NyYycsIGltcG9ydC5tZXRhLnVybCkpLFxyXG4gICAgICB9LFxyXG4gICAgfSxcclxuICAgIHNlcnZlcjoge1xyXG4gICAgICBwcm94eToge1xyXG4gICAgICAgICcvYXBpLWF0Jzoge1xyXG4gICAgICAgICAgdGFyZ2V0OiAnaHR0cDovLzEyNy4wLjAuMTo4MDAwJyxcclxuICAgICAgICAgIGNoYW5nZU9yaWdpbjogdHJ1ZSxcclxuICAgICAgICAgIHJld3JpdGU6IHBhdGggPT4ge1xyXG4gICAgICAgICAgICByZXR1cm4gcGF0aC5yZXBsYWNlKC9eXFwvYXBpXFwtYXQvLCAnJylcclxuICAgICAgICAgIH0sXHJcbiAgICAgICAgfSxccl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